package com.cskaoyan.bean.VoCCY;

import com.cskaoyan.bean.MarketStorage;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class MarketStorageCreateVo {

    /**
     * id : 329
     * key : psdw9pgrzk0g3yj1xuy3.jpg
     * name : u=1415984692,3889465312&fm=193&f=GIF.jpg
     * type : image/jpeg
     * size : 100694
     * url : http://182.92.235.201:8083/wx/storage/fetch/psdw9pgrzk0g3yj1xuy3.jpg
     * addTime : 2022-09-07 21:09:03
     * updateTime : 2022-09-07 21:09:03
     */

    private int id;
    private String key;
    private String name;
    private String type;
    private int size;
    private String url;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public MarketStorageCreateVo() {
    }

    public MarketStorageCreateVo(int id, String key, String name, String type, int size, String url, Date addTime, Date updateTime) {
        this.id = id;
        this.key = key;
        this.name = name;
        this.type = type;
        this.size = size;
        this.url = url;
        this.addTime = addTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
